PROJECT(XPMDOC-Control)

#add the files to our groups and core
SOURCE_GROUP("control" ./control/*)
#seems to be a bug in cmake, can't put these in analysis\\standard folder :(
#control detail

SET(XPMDOC-Control_Files
	#for example 
	#./control/ControlSynset.cpp	
	./control/XpmTermDocControl.cc	
	./control/XpmJsonDocControl.cc
	./control/XpmTableDocControl.cc
	./control/XpmDocControl.cc
	./control/XpmDocTranslator.cc
	./control/RdfProjectControl.cc
	./control/SdfSignControl.cc
)


#find our headers
file(GLOB_RECURSE HEADERS ${XPMDOC-Control_SOURCE_DIR}/*.h)


#create the libraries
INCLUDE_DIRECTORIES( ${XPMDOC_SOURCE_DIR}/src/control
                     ${XPMDOC_SOURCE_DIR}/src/model 
					 ${XPMDOC_SOURCE_DIR}/src/dal
					 )

#add_executable(XPMDOC-App
#	${XPMDOC-App_Files} ${HEADERS}
#)

add_library(XPMDOC-Control
    STATIC
	 ${XPMDOC-Control_Files} ${HEADERS}
	)

#set properties on the libraries
SET_TARGET_PROPERTIES(XPMDOC-Control PROPERTIES
    VERSION ${XPMDOC_VERSION}
    SOVERSION ${XPMDOC_SOVERSION}
    COMPILE_DEFINITIONS_DEBUG _DEBUG
)

#SET_TARGET_PROPERTIES( XPMDOC-Model PROPERTIES COMPILE_FLAGS "${XPMDOC_SOURCE_DIR}/src/dal/dal/otlv4.h" )
#SET_TARGET_PROPERTIES( XPMDOC-Model PROPERTIES LINK_FLAGS "odbc32.lib" )



